package com.cg.dto;

public enum DtoEnum {
    SUCCESS("0000", "成功","true"),
    FAIL("0001", "失败","false"),
    COMMON_EXCEPTION("0002", "系统异常","false"),
    COMMON_USER_ERROR("0003", "用户不存在","false"),
    COMMON_LOGIN_USER_ERROR("0004", "用户未登录","false"),
    COMMON_REG_EMAIL_PATTERN("1001", "邮箱格式错误","false"),
    COMMON_REG_TIME("1002", "冻结时间未到","false"),
    COMMON_REG_SMS_PHONE_ERROR("1003", "邮箱已注册","false"),
    FAIL_LOGIN("1006", "账号或密码错误","false"),
    FAIL_LOGIN_PASSWORD_ERROR("1007", "密码错误","false"),
    FAIL_ORDER("1008", "没有此订单","false"),
    FAIL_ORDER_STATE("1009", "订单状态不符合","false"),
    ;

    String errorCode;
    String msg;
    String success;

    DtoEnum(String errorCode, String msg,String success) {
        this.errorCode = errorCode;
        this.msg = msg;
        this.success=success;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }
}
